import 'package:json_annotation/json_annotation.dart';

part 'takeout_order_count.g.dart';

@JsonSerializable()
class TakeoutOrderCount extends Object {

  @JsonKey(name: 'newOrderCount')
  int newOrderCount;

  @JsonKey(name: 'waitDeliveryOrderCount')
  int waitDeliveryOrderCount;

  @JsonKey(name: 'deliveryOrderCount')
  int deliveryOrderCount;

  @JsonKey(name: 'completedOrderCount')
  int completedOrderCount;

  @JsonKey(name: 'failedOrderCount')
  int failedOrderCount;

  @JsonKey(name: 'refundOrderCount')
  int refundOrderCount;

  TakeoutOrderCount(this.newOrderCount,this.waitDeliveryOrderCount,this.deliveryOrderCount,this.completedOrderCount,this.failedOrderCount,this.refundOrderCount,);

  factory TakeoutOrderCount.fromJson(Map<String, dynamic> srcJson) => _$TakeoutOrderCountFromJson(srcJson);

  Map<String, dynamic> toJson() => _$TakeoutOrderCountToJson(this);

}

  
